#include <stdio.h>

#include "Server.h"
#include "../Komunikacja/Connector.h"
#include "../Komunikacja/Log.h"
#include "MessageDeliveryService.h"


Server::Server()
{
}

Server::~Server()
{
}

int Server::run(){
	debug1("run(){");
	MessageListener * myMsgListener = new MessageDeliveryService();
	debug1("new messageListenerCreated");
	Connector * conn = Connector::GetInstance();
	conn->setMessageListener(myMsgListener);
	debug1("before runServer()");
	conn->runServer();
	return 0;
}
